package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

public class OrderSumDTO {
    private List<Long> payOrderId;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    private List<Long> schoolIdList;

    private String startTime;

    private String endTime;

    /**
     * 计费年月
     */
    private String calcMonth;

    /**
     * 付费状态 1-未付款 0-已付款
     */
    private Integer payState;
    /**
     * 生效状态 1-待生效 2-已生效  3-已结束 4-已作废
     */
    private Integer validFlag;


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public List<Long> getSchoolIdList() {
        return schoolIdList;
    }

    public void setSchoolIdList(List<Long> schoolIdList) {
        this.schoolIdList = schoolIdList;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public String getCalcMonth() {
        return calcMonth;
    }

    public void setCalcMonth(String calcMonth) {
        this.calcMonth = calcMonth;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public List<Long> getPayOrderId() {
        return payOrderId;
    }

    public void setPayOrderId(List<Long> payOrderId) {
        this.payOrderId = payOrderId;
    }

    public Integer getValidFlag() {
        return validFlag;
    }

    public void setValidFlag(Integer validFlag) {
        this.validFlag = validFlag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
